#include <iostream>

using namespace std;

class Animal{
    public:
    Animal(){
        cout<<"动物类"<<endl;
    }
    private:
    double Age;
};
class Cat:public Animal{
    public:
    Cat(){
        cout<<"猫类继承动物类"<<endl;
    }
    private:
    int age;
};
class boSiCat:public Cat{
    public:
    boSiCat(){
        cout<<"波斯猫继承猫类"<<endl;
    }
    private:
    double name;
};
class jiaFeiCat:public boSiCat{
    public:
    jiaFeiCat(){
        cout<<"加菲猫继承波斯猫"<<endl;
    }
    private:
    char name;
};
int main(int argc, char const *argv[])
{
    Animal A1;
    cout<<sizeof(A1)<<endl;
    Cat C1;
    cout<<sizeof(C1)<<endl;
    boSiCat c1;
    cout<<sizeof(c1)<<endl;
    jiaFeiCat c2;
    cout<<sizeof(c2)<<endl;

    return 0;
}
